/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ub.informatica.disseny.movieaff.modelo;

/**
 *
 * @author pablo
 */
public class Director extends Artista {
    
    private String id;
    private String nom;
    private String tipus;
    private String idMovie;
    private double cache;
    
    public Director(String id, String nom, String tipus, String idMovie, double cache) {
        super(id,nom,tipus,idMovie);
        this.id = id;
        this.nom = nom;
        this.tipus = tipus;
        this.idMovie = idMovie;
        this.cache = cache;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the nom
     */
    public String getNom() {
        return nom;
    }

    /**
     * @param nom the nom to set
     */
    public void setNom(String nom) {
        this.nom = nom;
    }

    /**
     * @return the tipus
     */
    public String getTipus() {
        return tipus;
    }

    /**
     * @param tipus the tipus to set
     */
    public void setTipus(String tipus) {
        this.tipus = tipus;
    }

    /**
     * @return the idMovie
     */
    public String getIdMovie() {
        return idMovie;
    }

    /**
     * @param idMovie the idMovie to set
     */
    public void setIdMovie(String idMovie) {
        this.idMovie = idMovie;
    }

    /**
     * @return the cache
     */
    public double getCache() {
        return cache;
    }

    /**
     * @param cache the cache to set
     */
    public void setCache(double cache) {
        this.cache = cache;
    }
    
    @Override
    public String toString(){
        return ("\nDirector amb ID: " + getId() + "--------------------------------------" +
                "\nNombre: " + getNom() + "\nFilm ID: "+ getIdMovie() + "\nCache: "+ getCache());
    }
    
    
}
